<%
	String fileNote = request.getParameter("fileNote").trim();
    String fileUrl = request.getParameter("fileUrl").trim();
	String dir = request.getRealPath("/");

	String downloadPath =dir+"upload\\"+fileUrl; 


	response.setContentType("APPLICATION/OCTET-STREAM");
	response.setHeader("Content-Disposition","attachment; filename=\"" + fileNote + "\"");
	java.io.FileInputStream fileInputStream = new java.io.FileInputStream(downloadPath);
	int i;
	while ((i = fileInputStream.read()) != -1) {
		out.write(i);
        }
	fileInputStream.close();
	out.close();
%>